//
//  PlayResultLayer.h
//  NewMath
//
//  Created by Ngô Hoàng Nam on 1/3/15.
//
//

#ifndef __NewMath__PlayCongratulationsLayer__
#define __NewMath__PlayCongratulationsLayer__

#include "cocos2d.h"
#include "../../../GameConfig.h"
#include "../PlayManager.h"
USING_NS_CC;

class PlayCongratulationsLayer : public Layer
{
private:
    Size m_screenSize;
    Node* m_Win_1;
    Node* m_Lose;
    Node* m_Win_n;
	Node* m_nodeRoot;
    PlayManager* m_PlayManager;
    int m_star;
    
    void btnReplay_Tap(Ref* pSender);
    void btnNext_Tap(Ref* pSender);
    void btnBack_Tap(Ref* pSender);
	void reloadPlayManager();
	void returnLevelScene();
	void runActionTimeline();
public:
    static bool isProcessing;
    PlayCongratulationsLayer(Node* congratulationNode, Size screenSize);
    void initalize(EGameStatus m_EGameStatus, std::vector<std::string> list_equation,int numStar);
    void initLose(std::vector<std::string> list_equation);
    void initWin1(std::string equation);
    void initWinN(std::vector<std::string> list_equation);
};


#endif /* defined(__NewMath__PlayResultLayer__) */
